package com.yanqu.road.logic.bussiness.player;

import com.yanqu.road.entity.winery.UserWineryInfoData;
import com.yanqu.road.entity.winery.UserWineryDrinkerData;
import com.yanqu.road.entity.winery.UserWineryData;
import com.yanqu.road.logic.bussiness.DaoHelper;

import java.util.Map;

public class UserWineryBusiness {

    public static UserWineryInfoData getUserWineryInfoData(long userId) {
        return DaoHelper.getUserWineryInfoDaoImpl().getUserWineryInfoData(userId);
    }

    public static boolean addUserWineryInfoData(UserWineryInfoData userWineryInfoData) {
        return DaoHelper.getUserWineryInfoDaoImpl().add(userWineryInfoData);
    }

    public static boolean updateUserWineryInfoData(UserWineryInfoData userWineryInfoData) {
        return DaoHelper.getUserWineryInfoDaoImpl().update(userWineryInfoData);
    }


    public static Map<Integer, UserWineryDrinkerData> getUserWineryDrinkerDataMap(long userId) {
        return DaoHelper.getUserWineryDrinkerDaoImpl().getUserWineryDrinkerDataMap(userId);
    }

    public static boolean addUserWineryDrinkerData(UserWineryDrinkerData userWineryDrinkerData) {
        return DaoHelper.getUserWineryDrinkerDaoImpl().add(userWineryDrinkerData);
    }

    public static boolean updateUserWineryDrinkerData(UserWineryDrinkerData userWineryDrinkerData) {
        return DaoHelper.getUserWineryDrinkerDaoImpl().update(userWineryDrinkerData);
    }

    public static Map<Integer, UserWineryData> getUserWineryDataMap(long userId) {
        return DaoHelper.getUserWineryDaoImpl().getUserWineryDataMap(userId);
    }

    public static boolean addUserWineryData(UserWineryData userWineryData) {
        return DaoHelper.getUserWineryDaoImpl().add(userWineryData);
    }

    public static boolean updateUserWineryData(UserWineryData userWineryData) {
        return DaoHelper.getUserWineryDaoImpl().update(userWineryData);
    }
}
